//
//  ViewController.m
//  BXCalendar
//
//  Created by bianxiang on 16/3/23.
//  Copyright © 2016年 bianxiang. All rights reserved.
//

#import "ViewController.h"
#import "BXCalendar.h"
#import "BXCalendarPicker.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSLog(@"%@",NSStringFromCGRect([[UIApplication sharedApplication].windows lastObject].bounds) );
    
    UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
    btn.backgroundColor = [UIColor redColor];
    [btn addTarget:self action:@selector(btn) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
    
    // Do any additional setup after loading the view, typically from a nib.
//    BXCalendar *v = [[BXCalendar alloc] initWithFrame:CGRectMake(0, self.view.frame.size.height - 260, self.view.frame.size.width, 260) Sure:^(NSString *dateStr) {
//        NSLog(@"%@",dateStr);
//    }];
//    [self.view addSubview:v];
    
    
    
}

- (void)btn {
    BXCalendarPicker *p = [[BXCalendarPicker alloc] initWithFrame:CGRectMake(0, 0, 375, 667)];
    [self.view addSubview:p];
    
    [p showAnimation];
}

@end
